package com.moshang.blog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.moshang.blog.entity.BaseEntity;
import lombok.Data;
import org.springframework.data.annotation.Id;

/**
 * @program: blog
 * @description: 文章实体类
 * @author: moshang
 * @create: 2018-12-10 13:54
 **/
@Data
@TableName("tbl_article_info")
public class TbArticleInfo extends BaseEntity {
    @TableId(type = IdType.AUTO)
    private Integer id;

    private String title;
    private String content;
    private String introduction;
    private String image;
    private Integer isTop;
    private Integer isRecommend;
    private Integer traffic;
    private String label;
    private String sortName;
    private Integer sortId;
    private Integer status;
    private Integer support;
    private Integer comments;

    public TbArticleInfo(Integer id, Integer support) {
        this.id = id;
        this.support = support;
    }

    public TbArticleInfo() {
    }
}
